package com.intelligent.service;

import com.intelligent.dto.PurchaseStorageAddDTO;
import com.intelligent.dto.PurchaseStorageQueryDTO;
import com.intelligent.pojo.PurchaseStorage;
import com.intelligent.vo.PurchaseStorageVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
* @author 86188
* @description 针对表【purchase_storage(采购入库信息表)】的数据库操作Service
* @createDate 2025-09-02 10:11:39
*/
public interface PurchaseStorageService extends IService<PurchaseStorage> {

    /**
     * 分页查询采购入库列表
     * @param queryDTO 查询条件
     * @return 分页结果
     */
    Page<PurchaseStorageVO> getPurchaseStoragePage(PurchaseStorageQueryDTO queryDTO);

    /**
     * 新增采购入库
     * @param addDTO 新增数据
     * @return 是否成功
     */
    boolean addPurchaseStorage(PurchaseStorageAddDTO addDTO);

    /**
     * 获取采购入库详情
     * @param id 采购入库ID
     * @return 采购入库详情
     */
    PurchaseStorageVO getPurchaseStorageDetail(Long id);

    /**
     * 修改采购入库
     * @param id 采购入库ID
     * @param addDTO 修改数据
     * @return 是否成功
     */
    boolean updatePurchaseStorage(Long id, PurchaseStorageAddDTO addDTO);
}
